<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
</head>

<body>

    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-tab layui-tab-brief">
                <ul class="layui-tab-title layui_tab_title">
                    <li class="{$type==1?'layui-this':''}"><a
                            href="{:url('setting/indexpri',array('type'=>1))}">基本设置</a></li>
                    <!--                 <li class="{$type==2?'layui-this':''}"><a href="{:url('setting/indexpri',array('type'=>2))}">登录配置</a></li> -->
                    <li class="{$type==3?'layui-this':''}"><a
                            href="{:url('setting/indexpri',array('type'=>3))}">短信配置</a></li>
                    <!--                 <li class="{$type==4?'layui-this':''}"><a href="{:url('setting/indexpri',array('type'=>4))}">美颜配置</a></li> -->
                    <!--                 <li class="{$type==5?'layui-this':''}"><a href="{:url('setting/indexpri',array('type'=>5))}">分享配置</a></li> -->
                    <!--                 <li class="{$type==6?'layui-this':''}"><a href="{:url('setting/indexpri',array('type'=>6))}">推送配置</a></li> -->
                    <li class="{$type==7?'layui-this':''}"><a
                            href="{:url('setting/indexpri',array('type'=>7))}">支付配置</a></li>
                    <li class="{$type==8?'layui-this':''}"><a
                            href="{:url('setting/indexpri',array('type'=>8))}">提现配置</a></li>
                    <li class="{$type==9?'layui-this':''}"><a
                            href="{:url('setting/indexpri',array('type'=>9))}">分销配置</a></li>
                    <li class="{$type==10?'layui-this':''}"><a
                            href="{:url('setting/indexpri',array('type'=>10))}">商城配置</a></li>
                    <li><a href="{:url('ads/avatar')}">头像配置</a></li>
                </ul>
            </div>

            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <div class="layui-tab-content">
                    <div class="layui-tab-item {$type==1 ?'layui-show':''}">
                        <div class="layui-form" wid200="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">短视频审核开关</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="switch_shortvideo_check"
                                        value="{$config_pri.switch_shortvideo_check}">
                                    <input type="checkbox" {if $config_pri.switch_shortvideo_check}checked="" {/if}
                                        lay-skin="switch" lay-text="开启|关闭" lay-filter="switch_shortvideo_check">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">动态审核开关</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="switch_moment_check"
                                        value="{$config_pri.switch_moment_check}">
                                    <input type="checkbox" {if $config_pri.switch_moment_check}checked="" {/if}
                                        lay-skin="switch" lay-text="开启|关闭" lay-filter="switch_moment_check">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="configpri-save">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item {$type==2 ?'layui-show':''}">
                        <div class="layui-form" wid200="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">微信开放平台APPID</label>
                                <div class="layui-input-block">
                                    <input type="text" name="wx_appid" value="{$config_pri.wx_appid}"
                                        class="layui-input" placeholder="" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">微信开放平台SECRET</label>
                                <div class="layui-input-block">
                                    <input type="text" name="wx_secret" value="{$config_pri.wx_secret}"
                                        class="layui-input" placeholder="" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">UNIVERSAL_LINK</label>
                                <div class="layui-input-block">
                                    <input type="text" name="universal_link" value="{$config_pri.universal_link}"
                                        class="layui-input" placeholder="" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">QQ互联APPID</label>
                                <div class="layui-input-block">
                                    <input type="text" name="qq_appid" value="{$config_pri.qq_appid}"
                                        class="layui-input" placeholder="" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">QQ互联APPKEY</label>
                                <div class="layui-input-block">
                                    <input type="text" name="qq_appkey" value="{$config_pri.qq_appkey}"
                                        class="layui-input" placeholder="" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="configpri-save">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item {$type==3 ?'layui-show':''}">
                        <div class="layui-form" wid200="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">短信启用开关</label>
                                <div class="layui-input-block">
                                    <input type="radio" value="qcloud" name="sms_selecter" title="启用腾讯短信" {eq
                                        name="$config_pri.sms_selecter" value="qcloud" }checked{/eq} />
                                    <input type="radio" value="aliyun" name="sms_selecter" title="启用阿里短信" {eq
                                        name="$config_pri.sms_selecter" value="aliyun" }checked{/eq} />
                                    <input type="radio" value="ihuyi" name="sms_selecter" title="启用opt短信" {eq
                                        name="$config_pri.sms_selecter" value="ihuyi" }checked{/eq} />

                                </div>
                            </div>

                            <div class="layui-form-item">
                                <label class="layui-form-label">腾讯云短信secretid</label>
                                <div class="layui-input-block">
                                    <input type="text" name="qsms_secretid" value="{$config_pri.qsms_secretid}"
                                        class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">腾讯云短信secretkey</label>
                                <div class="layui-input-block">
                                    <input type="text" name="qsms_secretkey" value="{$config_pri.qsms_secretkey}"
                                        class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">腾讯云短信APP_ID</label>
                                <div class="layui-input-block">
                                    <input type="text" name="qsms_appid" value="{$config_pri.qsms_appid}"
                                        class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">腾讯云短信APP_KEY</label>
                                <div class="layui-input-block">
                                    <input type="text" name="qsms_appkey" value="{$config_pri.qsms_appkey}"
                                        class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">腾讯云短信模板ID</label>
                                <div class="layui-input-block">
                                    <input type="text" name="qsms_tplid" value="{$config_pri.qsms_tplid}"
                                        class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">腾讯云短信签名</label>
                                <div class="layui-input-block">
                                    <input type="text" name="qsms_sign" value="{$config_pri.qsms_sign}"
                                        class="layui-input" lay-verify="required">
                                </div>
                            </div>

                            <div class="layui-form-item">
                                <label class="layui-form-label">阿里云短信地区</label>
                                <div class="layui-input-block">
                                    <input type="text" name="alisms_region" value="{$config_pri.alisms_region}"
                                        class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">阿里云短信key</label>
                                <div class="layui-input-block">
                                    <input type="text" name="alisms_appkey" value="{$config_pri.alisms_appkey}"
                                        class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">阿里云短信secretkey</label>
                                <div class="layui-input-block">
                                    <input type="text" name="alisms_appsecret" value="{$config_pri.alisms_appsecret}"
                                        class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">阿里云短信签名</label>
                                <div class="layui-input-block">
                                    <input type="text" name="alisms_sign_name" value="{$config_pri.alisms_sign_name}"
                                        class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">阿里云短信模板ID</label>
                                <div class="layui-input-block">
                                    <input type="text" name="alisms_tpl_id" value="{$config_pri.alisms_tpl_id}"
                                        class="layui-input" lay-verify="required">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">opt通道SMS秘钥</label>
                                <div class="layui-input-block">
                                    <input type="text" name="ihuyi_apikey" value="{$config_pri.ihuyi_apikey}"
                                           class="layui-input" lay-verify="required">
                                </div>
                            </div>


                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="configpri-save">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item {$type==4 ?'layui-show':''}">
                        <div class="layui-form" wid200="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">美颜渠道</label>
                                <div class="layui-input-block">
                                    <input type="radio" name="beauty_channel" value="0" title="基础美颜" {if
                                        $config_pri.beauty_channel==0}checked{/if}>
                                    <input type="radio" name="beauty_channel" value="1" title="拓幻美颜" {if
                                        $config_pri.beauty_channel==1}checked{/if}>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">TiSDK Key</label>
                                <div class="layui-input-block">
                                    <input type="text" name="tisdk_key" value="{$config_pri.tisdk_key}"
                                        class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="configpri-save">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item {$type==5 ?'layui-show':''}">
                        <div class="layui-form" wid200="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">ShareSDK AppKey</label>
                                <div class="layui-input-block">
                                    <input type="text" name="sharesdk_appkey" value="{$config_pri.sharesdk_appkey}"
                                        class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">ShareSDK AppSecret</label>
                                <div class="layui-input-block">
                                    <input type="text" name="sharesdk_appsecret"
                                        value="{$config_pri.sharesdk_appsecret}" class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="configpri-save">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item {$type==6 ?'layui-show':''}">
                        <div class="layui-form" wid200="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">极光推送app_key</label>
                                <div class="layui-input-block">
                                    <input type="text" name="jpush_appkey" value="{$config_pri.jpush_appkey}"
                                        class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">极光推送master_seckey</label>
                                <div class="layui-input-block">
                                    <input type="text" name="jpush_master_secret"
                                        value="{$config_pri.jpush_master_secret}" class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="configpri-save">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item {$type==7 ?'layui-show':''}">
                        <div class="layui-form" wid200="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">苹果内购</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="switch_iap" value="{$config_pri.switch_iap}">
                                    <input type="checkbox" {if $config_pri.switch_iap}checked="" {/if} lay-skin="switch"
                                        lay-text="开启|关闭" lay-filter="switch_iap">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">微信支付商户ID</label>
                                <div class="layui-input-block">
                                    <input type="text" name="wx_mchid" value="{$config_pri.wx_mchid}"
                                        class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">微信支付Key</label>
                                <div class="layui-input-block">
                                    <input type="text" name="wx_key" value="{$config_pri.wx_key}" class="layui-input"
                                        lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">支付宝APPID</label>
                                <div class="layui-input-block">
                                    <input type="text" name="alipay_appid" value="{$config_pri.alipay_appid}"
                                        class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">支付宝私钥</label>
                                <div class="layui-input-block">
                                    <textarea placeholder="" class="layui-textarea"
                                        name="alipay_prikey">{$config_pri.alipay_prikey}</textarea>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">支付宝公钥</label>
                                <div class="layui-input-block">
                                    <textarea placeholder="" class="layui-textarea"
                                        name="alipay_pubkey">{$config_pri.alipay_pubkey}</textarea>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">eplutus_token</label>
                                <div class="layui-input-block">
                                    <input type="text" name="eplutus_token" value="{$config_pri.eplutus_token}"
                                        class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">eplutus_hashkey</label>
                                <div class="layui-input-block">
                                    <input type="text" name="eplutus_hashkey" value="{$config_pri.eplutus_hashkey}"
                                        class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">eplutus_enckey</label>
                                <div class="layui-input-block">
                                    <input type="text" name="eplutus_enckey" value="{$config_pri.eplutus_enckey}"
                                        class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">eplutus_enciv</label>
                                <div class="layui-input-block">
                                    <input type="text" name="eplutus_enciv" value="{$config_pri.eplutus_enciv}"
                                        class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">eplutus_bid</label>
                                <div class="layui-input-block">
                                    <input type="text" name="eplutus_bid" value="{$config_pri.eplutus_bid}"
                                        class="layui-input" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">支付回调域名</label>
                                <div class="layui-input-block">
                                    <input type="text" name="pay_notify_domain" value="{$config_pri.pay_notify_domain}"
                                        class="layui-input" placeholder="http或https开头" lay-verify="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="configpri-save">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item {$type==8 ?'layui-show':''}">
                        <div class="layui-form" wid200="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">宝石人民币汇率</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="exchange_rate" value="{$config_pri.exchange_rate}"
                                        class="layui-input" lay-verify="required" placeholder="请填写1~100整数">
                                </div>
                                <div class="layui-form-mid layui-word-aux">%</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">单次最低提现金额</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="withdraw_min" value="{$config_pri.withdraw_min}"
                                        class="layui-input" lay-verify="required" placeholder="请填写1~100整数">
                                </div>
                                <div class="layui-form-mid layui-word-aux">元</div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="configpri-save">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item {$type==9 ?'layui-show':''}">
                        <div class="layui-form" wid200="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">上级代理返佣比例</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="agent_ratio" value="{$config_pri.agent_ratio}"
                                        class="layui-input" lay-verify="required" placeholder="请填写1~100整数">
                                </div>
                                <div class="layui-form-mid layui-word-aux">%</div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="configpri-save">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item {$type==10 ?'layui-show':''}">
                        <div class="layui-form" wid200="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">商城客服ID</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="shop_service_uid" value="{$config_pri.shop_service_uid}"
                                        class="layui-input" lay-verify="required" placeholder="">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">商户提现手续费</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="shop_commission" value="{$config_pri.shop_commission}"
                                        class="layui-input" lay-verify="required" placeholder="0-100">
                                </div>
                                <div class="layui-form-mid layui-word-aux">%</div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">快递100授权KEY</label>
                                <div class="layui-input-block">
                                    <input type="text" name="kuaidi100_key" value="{$config_pri.kuaidi100_key}"
                                        class="layui-input" lay-verify="required" placeholder="快递100授权KEY">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">快递100customer</label>
                                <div class="layui-input-block">
                                    <input type="text" name="kuaidi100_customer"
                                        value="{$config_pri.kuaidi100_customer}" class="layui-input"
                                        lay-verify="required" placeholder="快递100customer">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="configpri-save">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="/layuiadmin/layui/layui.js"></script>
    <script>
        layui.config({
            base: '/layuiadmin/'
            , version: "{:config('other.ui_version')}"
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'setting']);
    </script>
</body>

</html>